/*************************************************************************
	> File Name: client.cpp
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年12月09日 星期四 21时29分49秒
 ************************************************************************/

#include "handle.h"
using namespace std;

int main()
{
	Manager* jinli = new CommonManager("李经理");
	Manager* zongjian = new Majordomo("张总监");
	Manager* zongjingli = new GeneralManager("王总经理");
	jinli->setSuperior(zongjian);
	zongjian->setSuperior(zongjingli);

	Request request("请假", "小菜请假", 1);
	jinli->requestApplication(request);

	Request request2("请假", "小菜请假", 4);
	jinli->requestApplication(request2);

	Request request3("加薪", "小菜请求加薪", 500);
	jinli->requestApplication(request3);

	Request request4("加薪", "小菜请求加薪", 1000);
	jinli->requestApplication(request4);

	return 0;
}
